package messageUtils;
/**
 * 
 * Copyright: Copyright (c) 2017 Asiainfo
 * 
 * @ClassName: utils.Result.java
 * @Description: 响应返回数据
 *
 * @version: v1.1.0
 * @author: Dongmw
 * @date: 2017年10月24日 下午7:35:07 
 *
 * Modification History:
 * Date         Author          Version            Description
 *------------------------------------------------------------
 * 2017年10月24日      Dongmw           v1.1.0               修改原因
 */
public class MessageResult
{
    String statusCode;
    String msg;
    Object data;
    public String getStatusCode()
    {
        return statusCode;
    }
    public void setStatusCode(String statusCode)
    {
        this.statusCode = statusCode;
    }
    public String getMsg()
    {
        return msg;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
    public Object getData()
    {
        return data;
    }
    public void setData(Object data)
    {
        this.data = data;
    }
    private MessageResult(Builder builder)
    {
        this.statusCode = builder.statusCode;
        this.msg = builder.msg;
        this.data = builder.data;
    }
    public static class Builder{
        private String statusCode;
        private String msg;
        private Object data;
         
        public MessageResult build()
        {
            return new MessageResult(this);
        }
      
        public Builder setStatusCode(String statusCode)
        {
            this.statusCode = statusCode;
            return this;
        }
        
        public Builder setMsg(String msg)
        {
            this.msg = msg;
            return this;
        }
       
        public Builder setData(Object data)
        {
            this.data = data;
            return this;
        }
    }
    @Override
    public String toString()
    {
        return "Result [statusCode=" + statusCode + ", msg=" + msg + ", data=" + data + "]";
    }
    
    
}
